#!/usr/bin/env bash

set -e

CLIB_DIR=$(cd $(dirname $0) && pwd)/../clib
BUILD_DIR=${CLIB_DIR}/build
rm -fr ${BUILD_DIR}
mkdir -p ${BUILD_DIR}
cmake -S ${CLIB_DIR} -B ${BUILD_DIR}
make -C ${BUILD_DIR}
